<template>
  <div class="index">

    <transition mode="out-in">
      <router-view></router-view>
    </transition>

    <van-tabbar v-model="active" class="name">
      <van-tabbar-item icon="like-o" @click="$router.push('/myindex/index')">首页</van-tabbar-item>
      <van-tabbar-item icon="fire-o" @click="$router.push('/myindex/order')">爆爆团</van-tabbar-item>
      <van-tabbar-item icon="paid" @click="$router.push('/myindex/mydingdan')">订单</van-tabbar-item>
      <van-tabbar-item icon="friends-o" @click="$router.push('/myindex/mine')">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data() {
    return {
      active: 0,
    };
  },
};
</script>

<style lang='scss' scoped>
.name {
  margin-top: 150px;
}
.v-enter {
  opacity: 0;
}
.v-enter-active {
  transition: all 0.4s;
}
.v-enter-to {
  opacity: 1;
}
.v-leave {
  opacity: 0;
}
.v-leave-active {
  transition: all 0.4s;
}
.v-leave-to {
  opacity: 1;
}
</style>